import request from '@/router/axios'

export function getAutoStockConfigPage(query) {
  return request({
    url: '/eims/autoStockConfig/page',
    method: 'get',
    params: query
  })
}

export function addAutoStockConfigObj(obj) {
  return request({
    url: '/eims/autoStockConfig',
    method: 'post',
    data: obj
  })
}

export function getAutoStockConfigObj(id) {
  return request({
    url: '/eims/autoStockConfig/' + id,
    method: 'get'
  })
}

export function delAutoStockConfigObj(id) {
  return request({
    url: '/eims/autoStockConfig/' + id,
    method: 'delete'
  })
}

export function putAutoStockConfigObj(obj) {
  return request({
    url: '/eims/autoStockConfig',
    method: 'put',
    data: obj
  })
}
